import Vue from 'vue'


import app from './App.vue'
import router from './router.js'

import { Header , Swipe, SwipeItem} from 'mint-ui';
Vue.component(Header.name, Header);

import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

import VueResource from 'vue-resource'
Vue.use(VueResource)

Vue.http.options.root = 'http://www.liulongbin.top:3005/api'

import moment from 'moment'

Vue.filter('dateFormat',function(dateStr,pattern='YYYY-MM-DD'){
    return moment(dateStr).format(pattern)
})
var vm = new Vue({
    el:"#app",
    render:c=>c(app),
    router      //挂载路由对象
})
